<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Misc</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Misc</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:g%3A%5Cnledevice%5Cpythonlibrary%5Cnle_library%5Cutil%5Cmisc.py">g:\nledevice\pythonlibrary\nle_library\util\misc.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-calculate_crc"><strong>calculate_crc</strong></a>(data)</dt><dd><tt>生成CRC<br>
:param&nbsp;data:数据<br>
:return:&nbsp;CRC值</tt></dd></dl>
 <dl><dt><a name="-crc16Xmodem"><strong>crc16Xmodem</strong></a>(bytes_data, start_pos, stop_pos, invert=False)</dt><dd><tt>CRC16&nbsp;Xmodem<br>
:param&nbsp;bytes_data:&nbsp;数据<br>
:param&nbsp;start_pos:&nbsp;开始位置<br>
:param&nbsp;stop_pos:&nbsp;结束位置<br>
:param&nbsp;invert:返转<br>
:return:结果值</tt></dd></dl>
</td></tr></table>
</body></html>